﻿@using AP.Framework.Infrastructure.Repositories
@using AP.Framework.Infrastructure.Database
@{
    ApContext context = new ApContext();  
    ChannelRepository channelRep = new ChannelRepository(context);
    var channelList = channelRep.GetAll().Where(p => p.ParentID == 0 && p.IsDisable == false).OrderBy(p => p.Sequence).ToList();
}           
<div id="primaryNav">
    <ul>
        @foreach (var channel in channelList)
        {
            <li>@Html.ActionLink(channel.ChannelName, channel.ChannelAction, channel.ChannelController, new { area = channel.ChannelArea }, null)</li> 
        }
        <li>@Html.ActionLink("帮助/问答 ？", "Index", "Help", new { }, new { @class = "help" })</li>
    </ul>
</div>

